package com.jkhan.design;

import com.jkhan.design.ceiling.LevelOneCeiling;
import com.jkhan.design.ceiling.LevelTwoCeiling;
import com.jkhan.design.coat.DuluxCoat;
import com.jkhan.design.coat.LiBangCoat;
import com.jkhan.design.floor.ShengXiangFloor;
import com.jkhan.design.tile.DongPengTile;
import com.jkhan.design.tile.MarcoPoloTile;

/**
 * @ClassName Builder
 * @Description Builder
 * @Author hjk
 * @Date 2023/1/16 23:30
 **/
public class Builder {

    public IMenu levelPOne(Double area) {
        return new DecorationPackageMenu(area, "豪华欧式")
                .appendCeiling(new LevelTwoCeiling())
                .appendCoat(new DuluxCoat())
                .appendFloor(new ShengXiangFloor());
    }

    public IMenu levelPTwo(Double area) {
        return new DecorationPackageMenu(area, "轻奢田园")
                .appendCeiling(new LevelTwoCeiling())
                .appendCoat(new LiBangCoat())
                .appendFloor(new MarcoPoloTile());
    }

    public IMenu levelPThree(Double area) {
        return new DecorationPackageMenu(area, "现代简约")
                .appendCeiling(new LevelOneCeiling())
                .appendCoat(new LiBangCoat())
                .appendFloor(new DongPengTile());
    }

}
